˵:
ϵͳƲȫµ˼,⴦, ϵͳURLӱƳɾ̬ʽ, վݱ¼Ļ. ĬϵURLʽΪhttp://www.your.com/cate.php?cid-1.html, ʽа(.php?), ܻᱻĳЩжΪǶ̬ҳ, վݱ¼Ļ, Ϊܸõվ¼Ļ, , Դվݱ¼Ļ

ʹ÷
˹ܵĿǰURLתɸױ¼ʽ, ҪصķȨ,apacheΪʹ÷.

1.ھ̬Ŀ¼, ̬Ŀ¼Ϊ"-htm-"̬Ŀ¼չΪ:".html"
   ĬϵURLʽΪ "http://www.your.com/cate.php?cid-1.html"
   µURLʽΪ    "http://www.your.com/cate-htm-cid-1.html"
   ִ̬ʽURLױ¼

2.Apache Web Server 
   ȷ Mod_rewrite ģ飬:  conf/httpd.conf Ƿδ (·ܻͬʽһ):

(һ)LoadModule rewrite_module libexec/mod_rewrite.so
()AddModule mod_rewrite.c

ڣôļͨconf/httpd.confм´롣ʱע⣬վʹͨ壬ؼӵȥ޷ʹáĺúȻ Apache . 

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
</IfModule>